import request from '/@/utils/request'

import {module} from '/@/api/ums'

const prefix = module + "/member/"

/**
 * 会员 API
 * @method create 添加
 * @method edit 编辑
 * @method delete 删除
 * @method query 查询
 */
export function umsMemberApi() {
    return {
        create: (data?: any): any => request({url: prefix + 'create', method: 'post', data,}),
        page: (data: any): any => request({url: prefix + 'page', method: 'post', data,}),
        edit: (data: any): any => request({url: prefix + 'edit', method: 'put', data}),
        delete: (data?: any): any => request({url: prefix + 'delete', method: 'post', data,}),
        query: (params: any): any => request({url: prefix + 'query', method: 'get', params}),
        appendById: (params: any): any => request({url: prefix + 'appendById', method: 'get', params}),
        prefix,
    };
}
